package com.pointmi.customeraccountdao;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity(name="customerDetails")
public class CustomerDetails implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column
	
	private String customerId;
	
	@Column 
	private String firstName;
	
	@Column 
	private String lastName;
	
	@Column 
	private String middleName;
	
	@Column
	private String homeAddress;
	
	@Column  
	private String city;
	
	@Column 
	private String state;
	
	@Column 
	private String country;
	
	@Column 
	private String phone;
	
	@OneToOne
	@PrimaryKeyJoinColumn
	private Customer customer;
	
	public String getCustomerId()
	{
		return customerId;
	}
	
	public void setCustomerId(String customerId)
	{
		this.customerId = customerId;
	}

	public String getFirstName()
	{
		return firstName;
	}
	
	public void setFirstName(String firstName)
	{
		this.firstName = firstName;
	}
	
	public String getLastName()
	{
		return lastName;
	}
	
	public void setLastName(String lastName)
	{
		this.lastName = lastName;
	}
	
	public String getMiddleName()
	{
		return middleName;
	}
	
	public void setMiddleName(String middleName)
	{
		this.middleName = middleName;
	}
	
	public String getHomeAddress()
	{
		return homeAddress;
	}
	
	public void setHomeAddress(String homeAddress)
	{
		this.homeAddress = homeAddress;
	}
	
	public String getCity()
	{
		return city;
	}
	
	public void setCity(String city)
	{
		this.city = city;
	}
	
	public String getState()
	{
		return state;
	}
	
	public void setState(String state)
	{
		this.state = state;
	}
	
	public String getPhone()
	{
		return phone;
	}
	
	public void setPhone(String phone)
	{
		this.phone = phone;
	}
	
	public String getCountry()
	{
		return country;
	}
	
	public void setCountry(String country)
	{
		this.country = country;
	}
	
	public Customer getCustomer()
	{
		return customer;
	}
	
}

